Developer Documentation

QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Triangles

A triangle is a closed plane figure defined by the three edges that connect three vertices. The entire triangle can have a set of attributes, and any or all of the three vertices can also have a set of attributes. A triangle is defined by the TQ3TriangleData data type. See "Creating and Editing Triangles" for a description of the routines you can use to create and edit triangles. Figure 21 shows a triangle.

Figure 21 A triangle

typedef struct TQ3TriangleData {
    TQ3Vertex3D                         vertices[3];
    TQ3AttributeSet                     triangleAttributeSet;
} TQ3TriangleData;
vertices
The three vertices that define the three sides of the triangle.
triangleAttributeSet
A set of attributes for the triangle. The value in this field is NULL if no triangle attributes are defined.

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |